-- GENERATED SPELL FOR [High General Abbendis] --


function spell0_10828(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_10828', 597, 1)
end

function spell1_10828(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_10828', 30314, 1)
end

function spell2_10828(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(17143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10828', 568, 1)
end

function Sorts_10828(pUnit, Event)
local choix_sorts_10828 = math.random(0, 2)
if choix_sorts_10828 == 0 then
pUnit:RegisterEvent('spell0_10828', 1, 1)
end
if choix_sorts_10828 == 1 then
pUnit:RegisterEvent('spell1_10828', 1, 1)
end
if choix_sorts_10828 == 2 then
pUnit:RegisterEvent('spell2_10828', 1, 1)
end
end

function mob10828_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10828', math.random(1500, 3000), 1)
end

function mob10828_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10828_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10828_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10828, 1, 'mob10828_Action')
RegisterUnitEvent(10828, 2, 'mob10828_Leave')
RegisterUnitEvent(10828, 3, 'mob10828_Kill')
RegisterUnitEvent(10828, 4, 'mob10828_Die')
